package edu.fudan.langlab.domain.notification

import java.util.List
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

@Service("DomainNotificationTypeService")
class DomainNotificationTypeServiceImpl implements DomainNotificationTypeService{
	
	@Autowired(required=false)
	List<IDomainNotificationTypeProvider> providers = newArrayList();	
	override getNotificationTypes() {
		providers.map[getDomainNotificationTypes].flatten.toList
	}
}

